package com.qcby.shujia.demo.anno;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

/**
 * @className: PreAuth
 * @description: TODO 类描述
 * @author: whz
 * @date: 2021/10/10
 **/
@Target({ElementType.METHOD})//加在方法和类型上
@Retention(RetentionPolicy.RUNTIME)//运行时生效
public @interface PreAuth {
    @AliasFor("path")
    String value() default "";

    @AliasFor("value")
    String path() default "";
}
